package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.AnnexService;
import com.iwop.moto.service.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/8/30.
 */

@SuppressWarnings("serial")
@Service
public class AnnexServiceImpl extends BaseService implements AnnexService {

    @Override
    public void insertAnnex(SuperRecordModel SRModel) {
        getSqlSession().insert("FAnnexMapper.insertAnnex",SRModel);
    }

    @Override
    public List getAnnex(String pid) {
        return getSqlSession().selectList("FAnnexMapper.getAnnex", pid);
    }

    @Override
    public void deleteAnnex(String aid) {
        getSqlSession().delete("FAnnexMapper.deleteAnnex", aid);
    }

    @Override
    public void updateAnnex(SuperRecordModel srModel) {
        getSqlSession().update("FAnnexMapper.updateAnnex", srModel);
    }
}
